﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace YXShop.Web.article
{
    public partial class morelist : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                Response.Write(GetNames());
            }
        }

        public string GetNames() 
        {
            string channelId = ChangeHope.WebPage.PageRequest.GetQueryString("channelId");
            YXShop.BLL.SystemInfo.ArticleChannel bll = new YXShop.BLL.SystemInfo.ArticleChannel();
            YXShop.Model.SystemInfo.ArticleChannel model = bll.GetModel(channelId);
            string test = YXShop.TemplateAction.Common.YXShop_PageContent("list");
            if(model!=null)
            {
                if (test.IndexOf("[#ReferName#]")>-1)
                {
                    test = test.Replace("[#ReferName#]",model.Name);
                }
            }
            return test;
            
        }
    }
}
